package com.ruoyi.regulator.service.impl;

import com.ruoyi.regulator.domain.pojo.NjtProvinces;
import com.ruoyi.regulator.domain.pojo.NjtRegionInfo;
import com.ruoyi.regulator.mapper.NjtProvincesMapper;
import com.ruoyi.regulator.service.NjtProvincesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class NjtProvincesServiceImpl implements NjtProvincesService {
    @Autowired
    private NjtProvincesMapper njtProvincesMapper;

    @Override
    public List<NjtProvinces> getNjtProvincesList(NjtProvinces njtProvinces) {
        return njtProvincesMapper.selectNjtProvincesList(njtProvinces);
    }

    @Override
    public List<NjtRegionInfo> getRegionInfoList(NjtRegionInfo regionInfo) {
        return njtProvincesMapper.selectRegionInfoList(regionInfo);
    }
}
